{% extends "admin/base.html" %} {% load admin_static %} {# Additional

<head> content here, some extra meta tags or favicon #} {#{% block extrahead %}#} {#{% endblock %}#} {# Additional CSS includes
  #} {#{% block extrastyle %}#} {#
  <link rel="stylesheet" type="text/css" href="{% static 'css/my_project.css' %}" media="all">#} {#{% endblock %}#} {# Additional JS files in footer, right before </body> #} {% block extrajs %}
  <script type="text/javascript" src="{% static 'echarts.min.js' %}"></script>
  <script type="text/javascript" src="{% static 'echart-option.js' %}"></script>

  {% endblock %} {% block content %}
  <div class="suit-column">
    <div class="row">
      <div class="span12" style="display: None"></div>
    <div class="span12">
      <h1>质量分析</h1>
      <table class="table">
        <thead>
          <tr>
            <th>类型</th>
            <th>反馈平均数</th>
            <th>最高反馈次数</th>
            <th>最低反馈次数</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>任务</td>
            <td>{{ task_average_fb.submitnum__avg }}</td>
            <td>{{ task_average_fb.submitnum__max }}</td>
            <td>{{ task_average_fb.submitnum__min }}</td>
          </tr>
          <tr>
            <td>任务数据</td>
            <td>{{ datatask_average_fb.submitnum__avg }}</td>
            <td>{{ datatask_average_fb.submitnum__max }}</td>
            <td>{{ datatask_average_fb.submitnum__min }}</td>
          </tr>
        </tbody>
      </table>
    </div>

    <div class="span12">
      <h1>交易分析</h1>
      <table class="table">
        <thead>
          <tr>
            <th>类型</th>
            <th>平均金额</th>
            <th>最高金额</th>
            <th>最低金额</th>
          </tr>
        </thead>
        <tbody>
          {% for i in trade_models %}
          <tr>
            <td>{{ i.0 }}</td>
            <td>{{ i.1 }}</td>
            <td>{{ i.2 }}</td>
            <td>{{ i.3 }}</td>
          </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>

    <div class="span12">
      <h1>用户分析</h1>
      <div class="span12" id="location-chart" style="height: 600px">
      </div>
      <div class="span12" id="age-chart" style="height: 350px">
      </div>
    </div>

    <div class="span12">
      <h1>交易数据</h1>
      <div class="span12" id="exchange-chart" style="height: 350px">

      </div>
    </div>
    </div>
  </div>
  {% endblock %}